{% extends 'layout/base.html' %}

{% block breadcrumb %}

{% endblock %}

{% block content %}
    {% if logs_obj %}
        <table class="table-bordered table" style="text-align: center">
        <thead>
        <tr>
            <th>ID</th>
            <th>所属项目</th>
            <th>创建时间</th>
            <th>执行用例总数/失败数/报错</th>
            <th>通过数量/通过率</th>
            <th>预览</th>
        </tr>
        </thead>
        <tbody>
        {% for foo in logs_obj %}
            <tr>
                <td>{{ foo.pk }}</td>
                <td>{{ foo.log_sub_it.it_name }}</td>
                <td>{{ foo.log_run_time }}</td>
                <td>{{ foo.log_run_count }}&nbsp;|&nbsp;{{ foo.log_failed_count }}&nbsp;|&nbsp;{{ foo.log_errors_count }}</td>
                <td>{{ foo.log_pass_count }}&nbsp|&nbsp;{{ foo.pass_rate }}</td>
                <td><a href="{% url 'preview' foo.pk %}" target="_blank" >预览下载报告</a></td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
    {% else %}
        <h6>暂无数据</h6>
    {% endif %}

    {% if all_count >= 10 %}
        <nav>
            <ul class="pagination">
                {{ page.page_html|safe }}

            </ul>
        </nav>
    {% endif %}

{% endblock %}

